package com.itboy.mall.pms.skuinfo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * sku信息对象 mall_sku_info
 *
 * @author itboy
 * @date 2021-08-08
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_sku_info")
public class MallSkuInfo implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * skuId
     */
    @TableId(value = "sku_id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * spuId
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * sku介绍描述
     */
    private String skuDesc;

    /**
     * 所属分类id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long catalogId;

    /**
     * 品牌id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long brandId;

    /**
     * 默认图片
     */
    private String skuDefaultImg;

    /**
     * 标题
     */
    private String skuTitle;

    /**
     * 副标题
     */
    private String skuSubtitle;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 销量
     */
    private Long saleCount;

}
